package org.celery.modules.shop.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.shop.entity.ShopDept;
import org.celery.modules.shop.vo.ShopDeptVO;

/**
 * 店铺部门关联表包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2023-09-12
 */
public class ShopDeptWrapper extends BaseEntityWrapper<ShopDept, ShopDeptVO>  {

    public static ShopDeptWrapper build() {
        return new ShopDeptWrapper();
    }

	@Override
	public ShopDeptVO entityVO(ShopDept shopDept) {
		ShopDeptVO shopDeptVO = BeanUtil.copy(shopDept, ShopDeptVO.class);

		return shopDeptVO;
	}

}
